package com.pk.platform.util.constant;

import java.util.Map;

import com.pk.platform.domain.privilege.User;

public class PrivilegeConstant {

	public static String VIEW_CHN = "查看";
	
	public static String UPDATE_CHN = "修改";
	
	public static String UPDATE_TUITION = "updateTuition"; //修改交费
	
	public static String UPDATE_CLASS = "updateClass"; //修改班级
	
	public static String UPDATE_CHILD = "updateChild"; //修改学童

	public static String UPDATE_REFUND = "updateRefund"; //修改退费
	
	//获得查看或修改
	public static String getOperate(String operate)
	{
		Map<String, String> privilege = User.getWebUser().getPrivilege();
		if(privilege.get(operate) == null)
		{
			return VIEW_CHN;
		}
		return UPDATE_CHN;
	}
	
}
